package services

import (
	"awesomeProject1/modules"
	"awesomeProject1/underly"
)

// 获取货代公司列表

func GetCompanyList() (error, []modules.Company) {
	err, PartsData := underly.GetCompanyList()
	return err, PartsData

}

func UpCompany(p modules.Company) error {
	err := underly.UpCompany(p)
	return err
}
func DelCompany(id string) error {

	err := underly.DelCompany(id)
	return err
}

func AddCompany(p modules.Company) error {
	err := underly.AddCompany(p)
	return err
}
